﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace Kopain2
{
    /// <summary>
    /// Interaction logic for FormTest2.xaml
    /// </summary>
    public partial class FormTest2 : Window
    {
        private People people = new People();
        private People family = new People();

        public FormTest2()
        {
            InitializeComponent();

            people.Add(new Person { PersonName = "Judge Mental" });
            people.Add(new Person { PersonName = "Office Rocker" });
            people.Add(new Person { PersonName = "Sir Real" });
            this.lstBox1.ItemsSource = people;

            family.Add(new Person("a"));
            family.Add(new Person("b"));
            family.Parent = new People();
            family.Parent.Add(new Person("c"));
            tvMain.ItemsSource = family;
        }
    }
}
